package demo.jvm;

public class Demo2 {
    public static final Demo2 demo2 = new Demo2();

    static {
        System.out.println("Demo2类执行静态代码块");
    }
    public Demo2(){
        System.out.println("Demo2类执行构造方法");
    }
    public void say(){
        System.out.println("执行say方法");
    }
}
